﻿using System;
using System.ComponentModel.DataAnnotations;
using HengTong.Model._Admin;
using WalkingTec.Mvvm.Core;

namespace HengTong.Model.Db.System;

/// <summary>
/// 用户收藏菜单
/// </summary>
public class SysUserFavorite : BasePoco
{
    [Display(Name = "绑定用户", Description = "关联的系统用户主键", GroupName = "用户信息")]
    public Guid? UserId { get; set; }

    [Display(Name = "绑定用户", Description = "关联的系统用户对象", GroupName = "用户信息")]
    public FrameworkUser User { get; set; }

    [Display(Name = "菜单ID", Description = "收藏菜单的唯一标识符", GroupName = "菜单信息")]
    [Required]
    [MaxLength(128)]
    public string MenuId { get; set; }

    [Display(Name = "菜单名称", Description = "收藏菜单的显示名称", GroupName = "菜单信息")]
    [Required]
    [MaxLength(128)]
    public string MenuName { get; set; }

    [Display(Name = "菜单图标", Description = "收藏菜单显示的图标样式", GroupName = "菜单信息")]
    [MaxLength(128)]
    public string MenuIcon { get; set; }

    [Display(Name = "菜单URL", Description = "收藏菜单的访问地址路径", GroupName = "菜单信息")]
    [MaxLength(128)]
    public string MenuUrl { get; set; }

    [Display(Name = "排序", Description = "收藏菜单的显示排序序号，数值越小越靠前", GroupName = "菜单信息")]
    public int? SortOrder { get; set; }
}